<div class="header">
    <div class="w1200">
        <div class="logo fl">
            <a href="/">
                <img src="__STATIC__/images/logo.png" alt="{:get_config('site_name')}"
                     title="{:get_config('site_name')}"/>
            </a>
        </div>
        <div class="topright fr">
            <!--S 搜索栏-->
            <div class="topbtn fr">
                <div class="search-box fr">
                    <span class="butn hov"><i></i></span>
                    <div class="share-sub" style="width: 0px;">
                        <form name="formsearch" action="/search.html">
                            <input class="fl tex" type="text" name="keyword" value="请输入关键字"
                                   onfocus="if(this.value==defaultValue)this.value=''"
                                   onblur="if(this.value=='')this.value=defaultValue">
                            <input type="submit" value="" class="fl sub-btn ico">
                        </form>
                    </div>
                </div>
            </div>
            <!--E 搜索栏-->
            <!--S 导航-->
            <div class="nav fl">
                <ul class="navlist">
                    <li <?php if(empty($cid)){echo "class='hover'";} ?> ><a href="/" title="首页">首页</a></li>
                    {cms:nav item="vo" key="key"}
                    <li <?php if(isset($cid) && $cid==$vo['id'] || $vo['childids'] && in_array($cid,$vo['childids'])) { echo "class='hover'";} ?> >
                        <a href="{$vo.href}" target="{$vo.target}">{$vo.name}</a>
                        <!--判断是否有子栏目-->
                        {notempty name="vo.sub"}
                        <div class="subnav">
                            {volist name="vo.sub" id="v1"}
                            <a href="{$v1.href}">{$v1.name}</a>
                            {/volist}
                        </div>
                        {/notempty}
                    </li>
                    {/cms:nav}
                </ul>
            </div>
            <!--E 导航-->
            <!--S 会员中心-->
            <div class="user fr">
                <ul>
                    <li class="log"><a href="/index/user/login.html">登录</a></li>
                    <li class="reg"><a href="/index/user/register.html">注册</a></li>
                </ul>
            </div>
            <!--E 会员中心-->
        </div>
    </div>
    <!--E 头部-->
</div>
